package com.hrt.datasender.mq.model;

import com.hrt.datasender.datastorage.StorageDataType;

/**
 * Created by Chance on 2017/11/2.
 */
public class PacketModel extends MqModel {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private String ip;
    private String port;
    private String mn;
    private Object msg;
    private StorageDataType dataType;
    private String qn;

    @Override
    public int getMqModelType() {
        return MqModel.MODEL_TYPE_PACKET;
    }

    @Override
    public String toString() {
        return "PacketModel{" + "msg=" + msg + ", ip='" + ip + '\'' + ", port='" + port + '\'' + ", mn='" + mn + '\''
                + '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getMn() {
        return mn;
    }

    public void setMn(String mn) {
        this.mn = mn;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(Object msg) {
        this.msg = msg;
    }

    public StorageDataType getDataType() {
        return dataType;
    }

    public void setDataType(StorageDataType dataType) {
        this.dataType = dataType;
    }

    public String getQn() {
        return qn;
    }

    public void setQn(String qn) {
        this.qn = qn;
    }
}
